package pages;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class LoginController {


    @RequestMapping(value = "login")
    public String login(HttpServletRequest request){
        request.getSession().setAttribute("aa","new session");
        return "{\"success\":\"1\"}";
    }


}
